//
//  FxDefine.swift
//  Uber
//
//  Created by chen on 16/3/10.
//  Copyright © 2016年 chen. All rights reserved.
//

import Foundation
import UIKit
//常量
let LoadingTip = "加载中...."
let iOS8 = 8.0
let PanWidth:CGFloat = 180.0
//设备的尺寸
let ScreenHeight = UIScreen.mainScreen().bounds.size.height
func FxLog(message:String,function:String = __FUNCTION__){
    #if DEBUG
        print("Log:\(message),function:\(function)")
    #else
        
    #endif
}
//判断设备的尺寸
func isIphone5() -> Bool{
    if ScreenHeight == 568 {
        return true
    }
    return false
}
func isIphone6or6s() -> Bool{
    if ScreenHeight == 667{
        return true
    }
    return false
}
func isIphone6por6sp() -> Bool{
    if ScreenHeight == 736{
        return true
    }
    return false
}

//判断当前设备是否为ios或者os
func isIOSorOS() -> Bool{
    #if os(ios)
        return true
    #else
        return false
    #endif
}